package com.zmn.plat.dubbo.interfaces.plat.biztype;

import java.util.List;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

import com.zmn.common.dto2.ResponseDTO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * 平台开通业务类型dubbo接口
 *
 * @author linfeng
 * @version v1.0
 * @since 2020/09/07 16:33
 */
@Api(value = "平台开通业务类型服务", tags = {"平台开通业务类型"})
public interface PlatBizTypeListRemoteService {

    /**
     * 根据平台查询平台开通的业务类型
     * 
     * @param plat
     * @return 如果平台没有配置任何业务类型 则返回为空list 对应业务类型参照：com.zmn.plat.common.constant.ProductConsts#BIZ_TYPE_C
     */
    @ApiOperation(value = "根据平台查询平台开通的业务类型", response = ResponseDTO.class, tags = {"平台开通业务类型"})
    ResponseDTO<List<Integer>> listBizTypeByPlat(@NotNull(message = "plat不能为空") @Positive(message = "plat必须为大于0的正整数") @ApiParam(value = "平台", required = true) Integer plat);

}
